﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script type="text/javascript" src="Scripts/jquery-1.9.1.min.js"></script>
    <script type="text/javascript">
        $(function () {
            for (i = 0; i < 5; i++) {
                $("#a" + i).click(function () { alert() })

            }
        });
    </script>
</head>
<body>
<button id="a0" type="button" value="0"></button>
<button id="a1" type="button" value="1"></button>
<button id="a2" type="button" value="2"></button>
<button id="a3" type="button" value="3"></button>
<button id="a4" type="button" value="5"></button>
<button id="a6" type="button" value="6"></button>
</body>
</html>
